package chapter06

/**
 *
 * @author cdhuangchao3
 * @date 2023/6/9 5:15 PM
 */
object Test02_PackageObject {
  def main(args: Array[String]): Unit = {
    commonMethod()
  }
}

package chapter06 {
  object Test02_PackageObject {
    def main(args: Array[String]): Unit = {
      commonMethod()
      println(commonValue)
    }
  }
}

package ccc {
  package ddd {
    object Test02_PackageObject {
      def main(args: Array[String]): Unit = {
        println(school)
      }
    }
  }

  // 定义一个包对象
  package object ddd {
    val school = "at"

  }
}

//// 定义一个包对象
//package object ddd {
//  val school = "at"
//
//}